From: Paul Eggert Date: Thu, 12 Jan 2012 21:33:25 +0000 (-0800) Subject: * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1190 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ae834bd44efe694be2e6c31b495c2e4436e39330;p=emacs.git * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0cd5ca09b08..107ae586173 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-01-12 Paul Eggert + + * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses. + 2012-01-11 Eli Zaretskii * xdisp.c (rows_from_pos_range): Handle the case where the diff --git a/src/xdisp.c b/src/xdisp.c index dc046886039..c90184f4a4c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -25932,14 +25932,14 @@ rows_from_pos_range (struct window *w, while (g < e) { if (((BUFFERP (g->object) || INTEGERP (g->object)) - && (start_charpos <= g->charpos && g->charpos < end_charpos + && ((start_charpos <= g->charpos && g->charpos < end_charpos) /* If the buffer position of the first glyph in the row is equal to END_CHARPOS, it means the last character to be highlighted is the newline of ROW, and we must consider NEXT as END, not END+1. */ - || ((!next->reversed_p && g == s - || next->reversed_p && g == e - 1) + || (((!next->reversed_p && g == s) + || (next->reversed_p && g == e - 1)) && (g->charpos == end_charpos /* Special case for when NEXT is an empty line at ZV. */